import { http } from "@/utils/http";
import type {
  GetHomeBannerListResponse,
  GetHomeEduDataResponse,
} from "./types";

/**
 * 获取首页轮播图
 * @returns GetHomeBannerListResponse
 */
export const getHomeBannerListApi = () => {
  return http.get<GetHomeBannerListResponse>("/api/cms/banner");
};

/**
 * 获取首页教师和课程列表
 * @returns GetHomeEduDataResponse
 */
export const getHomeEduDataApi = () => {
  return http.get<GetHomeEduDataResponse>("/api/edu/index");
};
